<?php
namespace Mobile\Model;
use Think\Model;
class DateModel extends Model{

	public function getDateInfo($condition,$field="*"){
		return $this->where($condition)->field($field)->find();
	}

	public function getDateList($condition='',$field="*",$limit='1000'){
		return $this->where($condition)->field($field)->limit($limit)->select();
	}

	public function saveDate($data,$condition){
		return $this->where($condition)->save($data);

	}
}